package com.baosight.xdata.zyl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class RequestEntry implements Serializable {
    String name;
    String country;
    String hobby;
    Integer id;
    Integer age;

    public RequestEntry() {
    }

    public String getName() {
        return name;
    }

    public RequestEntry setName(String name) {
        this.name = name;
        return this;
    }

    public String getCountry() {
        return country;
    }

    public RequestEntry setCountry(String country) {
        this.country = country;
        return this;
    }

    public String getHobby() {
        return hobby;
    }

    public RequestEntry setHobby(String hobby) {
        this.hobby = hobby;
        return this;
    }

    public Integer getId() {
        return id;
    }

    public RequestEntry setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getAge() {
        return age;
    }

    public RequestEntry setAge(Integer age) {
        this.age = age;
        return this;
    }

    public Map<String, String> convert2Map(){
        Map<String, String> body =  new HashMap();
        body.put("id", String.valueOf(getId()));
        body.put("name", String.valueOf(getName()));
        body.put("age", String.valueOf(getAge()));
        body.put("country", String.valueOf(getCountry()));
        body.put("hobby", String.valueOf(getHobby()));
        return body;
    }

}
